Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: proxy beacon #893

Merged
merged 5 commits into from
Sep 5, 2024
Merged

feat: proxy beacon #893

merged 5 commits into from
Sep 5, 2024

Conversation

phamphong9981
Copy link
Collaborator

No description provided.

await EvmEvent.query()
.where('address', contractAddress)
.andWhere('topic0', EVMSmartContract.PROXY_EVENT_TOPIC0.BEACON_UPGRADED)
.select('topic1')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

orderBy? limit 1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sao ko thêm order?

Copy link
Collaborator Author

@phamphong9981 phamphong9981 Sep 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Em đọc trong code beacon contract, thì proxy chỉ emit event BeaconUpgraded khi khởi tạo thôi. Nên query của em nếu đúng logic thì chỉ ra 1 record thôi ạ

@peara peara merged commit 99f110c into evm Sep 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants